import App from './App'

// #ifndef VUE3
import Vue from 'vue'

import store from './store'

import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App,
  store
})
app.$mount()
// #endif

import uvUI from '@/uni_modules/uv-ui-tools'

import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

import cuCustom from './colorui/components/cu-custom.vue'
import ccuCustom from './colorui/components/c-cu-custom.vue'
import myCuCustom from './components/my-cu-custom.vue'
Vue.component('cu-custom',cuCustom)
Vue.component('c-cu-custom',ccuCustom)
Vue.component('my-cu-custom',myCuCustom)

import help from '@/utils/help.js';
import share from '@/utils/share.js';
// import config from '@/config/config.js';
Vue.mixin(share)
Vue.mixin(help)

// Vue.prototype.$config = config

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif

// #ifndef VUE3
Vue.use(uvUI);
// #endif
// #ifdef VUE3
app.use(uvUI);
// #endif